<div class="settings-option">
	<h4>网站</h4>
	<div>
		<label for="site-name">名称</label>
		<input type="text" class="form-control" id="site-name" name="site.name" value="{config('site.name')}" placeholder="网站主显示名称">
	</div>
	<div>
		<label for="site-subname">副名称</label>
		<input type="text" class="form-control" id="site-subname" name="site.subname" value="{config('site.subname')}" placeholder="附加在网站名称之后的内容">
	</div>
	<div>
		<label for="mod-lang">语言</label>
		<select id="mod-lang" name="mod.language" class="form-control">
			<foreach data="$lang as $key => $value">
				<option value="{$key}"{config('mod.language') == $key ? ' selected' : ''}>
					{$value}
				</option>
			</foreach>
		</select>
	</div>
	<div>
		<label for="site-author">作者</label>
		<input type="text" class="form-control" id="site-author" name="site.author" value="{config('site.author')}" placeholder="网站的作者或所有者">
	</div>
	<div>
		<label for="site-keywords">关键字</label>
		<input type="text" class="form-control" id="site-keywords" name="site.keywords" value="{config('site.keywords')}" placeholder="对搜索引擎友好的索引">
	</div>
	<div>
		<label for="site-description" class="align-top">描述</label>
		<textarea type="text" class="form-control" rows="3" id="site-description" name="site.description" placeholder="网站的简介，对搜索引擎友好">{config('site.description')}</textarea>
	</div>
	<div>
		<label for="site-url">网站地址</label>
		<input type="text" class="form-control" id="site-URL" name="site.URL" value="{config('site.URL')}" placeholder="{site_url()}" placeholder="固定网站地址">
	</div>
	<div>
		<label for="site-icp">备案号</label>
		<input type="text" class="form-control" id="site-icp" name="site.ICP" value="{config('site.ICP')}" placeholder="仅对需要备案登记的地区有效">
	</div>
	<div>
		<input type="hidden" name="site.logo" value=""/>
		<label for="upload-logo" class="align-top">网站 LOGO</label>
		<div>
			<button type="button" class="btn btn-default" id="upload-logo" data-loading-text="打开文件...">上传图片</button>
			<div id="site-logo-preview" style="display:{config('site.logo') ? 'block' : 'none'}">
				<img src="{config('site.logo')}" alt="网站 LOGO" data-origin="{config('site.logo')}">
			</div>
		</div>
	</div>
	<p class="settings-desc">
		除了网站地址，上述其他设置的有效性取决于你的模板设计情况。<br>
		网站 LOGO 的大小可以根据模板的需要自由设置，但推荐为 240*80。
	</p>
</div>
<div class="settings-option">
	<h4>伪静态</h4>
	<div>
		<label for="site-home-staticURL">首页</label>
		<input type="text" class="form-control" id="site-home-staticurl" name="site.home.staticURL" value="{config('site.home.staticURL')}" placeholder="参数关键字使用 {} 包裹">
	</div>
	<div>
		<label for="category-static-url">分类目录页面</label>
		<input type="text" class="form-control" id="category-static-url" name="category.staticURL" value="{config('category.staticURL')}" placeholder="参数关键字使用 {} 包裹">
	</div>
	<div>
		<label for="post-static-url">文章详情页面</label>
		<input type="text" class="form-control" id="post-static-url" name="post.staticURL" value="{config('post.staticURL')}" placeholder="参数关键字使用 {} 包裹">
	</div>
	<div>
		<label for="user-static-url">用户详情页</label>
		<input type="text" class="form-control" id="user-static-url" name="user.staticURL" value="{config('user.staticURL')}" placeholder="参数关键字使用 {} 包裹">
	</div>
</div>
<div class="settings-option" id="smtp">
	<h4>后台管理中心</h4>
	<div>
		<label for="site-admin-list-count">列表默认显示数目</label>
		{!$count = config('site.admin.listCount')}
		<select id="site-admin-list-count" name="site.admin.listCount" class="form-control">
			<option value="10"{$count == 10 ? ' selected' : ''}>10</option>
			<option value="20"{$count == 20 ? ' selected' : ''}>20</option>
			<option value="50"{$count == 50 ? ' selected' : ''}>50</option>
			<option value="80"{$count == 80 ? ' selected' : ''}>80</option>
			<option value="150"{$count == 150 ? ' selected' : ''}>150</option>
		</select>
	</div>
	<div>
		<label for="site-admin-list-count">列表默认排序方式</label>
		{!$sequence = config('site.admin.listSequence')}
		<select id="site-admin-list-count" name="site.admin.listSequence" class="form-control">
			<option value="asc"{$sequence == 'asc' ? ' selected' : ''}>按 ID</option>
			<option value="desc"{$sequence == 'desc' ? ' selected' : ''}>按最新</option>
		</select>
	</div>
	<div>
		{!$key = 'site.admin.autoCheckUpdate'}
		<label for="site-admin-auto-check-update">自动检测更新</label>
		<span>
			<label class="radio-inline">
				<input type="radio" name="{$key}" value="true"{config($key) ? ' checked' : ''} id="site-admin-auto-check-update"/> 是
			</label>
			<label class="radio-inline">
				<input type="radio" name="{$key}" value="false"{config($key) == false ? ' checked' : ''}> 否
			</label>
		</span>
	</div>
</div>
<div class="settings-option" id="smtp">
	<h4>邮件</h4>
	<div>
		<label for="site-mail-host">SMTP 服务器</label>
		<input type="text" class="form-control" id="site-mail-host" name="mod.mail.host" value="{config('mod.mail.host')}" placeholder="邮件服务器地址"/>
	</div>
	<div>
		<label for="site-mail-port">端口</label>
		<input type="text" class="form-control" id="site-mail-port" name="mod.mail.port" value="{config('mod.mail.port')}" placeholder="邮件服务器端口"/>
	</div>
	<div>
		<label for="site-mail-from">发件人</label>
		<input type="text" class="form-control" id="site-mail-from" name="mod.mail.from" value="{config('mod.mail.from')}" placeholder="发件人地址"/>
	</div>
	<div>
		<label for="site-mail-username">用户名</label>
		<input type="mail" class="form-control" id="site-mail-username" name="mod.mail.username" value="{config('mod.mail.username')}" placeholder="登录邮箱的用户名"/>
	</div>
	<div>
		<label for="site-mail-password">密码</label>
		<input type="password" class="form-control" id="site-mail-password" name="mod.mail.password" value="{config('mod.mail.password')}" placeholder="登录邮箱的密码"/>
		<if data="!is_agent('Edge/14')">
			<i class="glyphicon glyphicon-eye-open"></i>
		</if>
	</div>
	<p class="settings-desc">
		邮件服务通常用来发送验证码、发送通知邮件等。
	</p>
</div>